package banking8.domain;

import banking8.domain.CheckingAccount;
import banking8.domain.SavingsAccount;
import banking8.domain.Account;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2022-11-08
 * Time:22:51
 */
public class Customer {
    //a
    private String firstName;
    private String lastName;
    //使其包含两个关联属性
    banking8.domain.SavingsAccount savingsAccount=null;
    banking8.domain.CheckingAccount checkingAccount=null;

    //b
    public Customer(String firstName, String lastName) {
        this.firstName = firstName;
        this.lastName = lastName;
    }
    //c
    public String getFirstName() {
        return firstName;
    }
    //c
    public String getLastName() {
        return lastName;
    }
    //d

    public banking8.domain.SavingsAccount getSavings() {
        return savingsAccount;
    }
    public void setSavings(SavingsAccount savingsAccount) {
        this.savingsAccount = savingsAccount;
    }
    public banking8.domain.CheckingAccount getChecking() {
        return checkingAccount;
    }
    public void setChecking(CheckingAccount checkingAccount) {
        this.checkingAccount = checkingAccount;
    }
}
